//
//  HNSH_UserNetServer.m
//  HNSH_SingleProject
//
//  Created by 李宇廷 on 2023/2/16.
//

#import "HNSH_UserNetServer.h"
#import "HNSH_NetConst.h"

@implementation HNSH_UserNetServer


//服务配置接口
+ (NSURLSessionTask *)requestAPPServerConfigSuccess:(ST_DataRequestSuccess)success Failure:(ST_RequestFailure)failure {
    return [ST_BaseNetManager requestMethod:HttpMethodGet urlString:URL_APP_Server_Config params:@{} from:NO success:success failure:failure];
}

//登录
+ (NSURLSessionTask *)requestLoginWithUserName:(NSString *)userName pwd:(NSString *)pwd type:(NSString *)type success:(ST_DataRequestSuccess)success Failure:(ST_RequestFailure)failure {
    NSString *urlString = [NSString stringWithFormat:@"%@?username=%@&password=%@&type=%@&client_id=app",URL_Oauth_Login,userName,pwd,type];
    return [ST_BaseNetManager requestMethod:HttpMethodPost urlString:urlString params:@{} from:YES success:success failure:failure];
}

//刷新token
+ (NSURLSessionTask *)requestRefreshTokenSuccess:(ST_DataRequestSuccess)success Failure:(ST_RequestFailure)failure {
    NSDictionary *dict = @{@"refresh_token":[ST_UserManager shareInstance].refresh_token,
                           @"client_id":@"app"};
    return [ST_BaseNetManager requestMethod:HttpMethodPost urlString:URL_Oauth_Refresh_Token params:dict from:NO success:success failure:failure];
}


//获取三方登录信息
+ (NSURLSessionTask *)requestBingBirdUnionLoginSuccess:(ST_DataRequestSuccess)success Failure:(ST_RequestFailure)failure {
    return [ST_BaseNetManager requestMethod:HttpMethodPost urlString:URL_BingBird_Union_Login params:@{} from:YES success:success failure:failure];
}


//获取验证码
+ (NSURLSessionTask *)requestSendCodeWithUserName:(NSString *)userName type:(KSendCodeType)type success:(ST_DataRequestSuccess)success Failure:(ST_RequestFailure)failure {
    NSDictionary *dict = @{@"phone":userName,
                           @"scene":@(type)};
    return [ST_BaseNetManager requestMethod:HttpMethodPost urlString:URL_Sms_Send_Code params:dict from:NO success:success failure:failure];
}

// 激活短信验证码
+ (NSURLSessionTask *)requestVerifyCodeWithUserName:(NSString *)userName type:(KSendCodeType)type code:(NSString *)code success:(ST_DataRequestSuccess)success Failure:(ST_RequestFailure)failure {
    NSDictionary *dict = @{@"phone":userName,
                           @"scene":@(type),
                           @"code":code
    };
    return [ST_BaseNetManager requestMethod:HttpMethodPost urlString:URL_Verify_Sms_Code params:dict from:NO success:success failure:failure];
}

//用户注册
+ (NSURLSessionTask *)requestUserRegisterWithUserName:(NSString *)userName sms_code:(NSString *)sms_code pwd:(NSString *)pwd invite_code:(NSString *)invite_code success:(ST_DataRequestSuccess)success Failure:(ST_RequestFailure)failure {
    NSDictionary *dict = @{@"phone":userName,
                           @"password":pwd,
                           @"sms_code":sms_code,
                           @"invite_code":invite_code};
    return [ST_BaseNetManager requestMethod:HttpMethodPost urlString:URL_User_Register params:dict from:NO success:success failure:failure];
}

//更新用户信息
+ (NSURLSessionTask *)requestUserUpdateWithParams:(NSDictionary *)params success:(ST_DataRequestSuccess)success Failure:(ST_RequestFailure)failure {
    return [ST_BaseNetManager requestMethod:HttpMethodPost urlString:URL_User_Update params:params from:NO success:success failure:failure];
}


//退出
+ (NSURLSessionTask *)requestUserLogoutSuccess:(ST_DataRequestSuccess)success Failure:(ST_RequestFailure)failure {
    return [ST_BaseNetManager requestMethod:HttpMethodGet urlString:URL_Logout params:@{} from:YES success:success failure:failure];
}


//密码重置【未登录】
+ (NSURLSessionTask *)requestUserResetPasswordWithUserName:(NSString *)userName sms_code:(NSString *)sms_code pwd:(NSString *)pwd success:(ST_DataRequestSuccess)success Failure:(ST_RequestFailure)failure {
    NSDictionary *dict = @{@"phone":userName,
                           @"sms_code":sms_code,
                           @"password":pwd};
    return [ST_BaseNetManager requestMethod:HttpMethodPost urlString:URL_User_Reset_Password params:dict from:NO success:success failure:failure];
}

//密码修改
+ (NSURLSessionTask *)requestUserModifyPasswordWithSms_code:(NSString *)sms_code pwd:(NSString *)pwd success:(ST_DataRequestSuccess)success Failure:(ST_RequestFailure)failure {
    NSDictionary *dict = @{
                           @"sms_code":sms_code,
                           @"password":pwd};
    return [ST_BaseNetManager requestMethod:HttpMethodPost urlString:URL_User_Modify_Password params:dict from:NO success:success failure:failure];
}

//修改支付密码
+ (NSURLSessionTask *)requestUserChangePaymentPwdWithSms_code:(NSString *)sms_code pwd:(NSString *)pwd success:(ST_DataRequestSuccess)success Failure:(ST_RequestFailure)failure {
    NSDictionary *dict = @{
                           @"sms_code":sms_code,
                           @"password":pwd};
    return [ST_BaseNetManager requestMethod:HttpMethodPost urlString:URL_Change_Payment_PSW params:dict from:NO success:success failure:failure];
}

//获取用户信息
+ (NSURLSessionTask *)requestUserDetailSuccess:(ST_DataRequestSuccess)success Failure:(ST_RequestFailure)failure {
    return [ST_BaseNetManager requestMethod:HttpMethodGet urlString:URL_User_Detail params:@{} from:NO success:success failure:failure];
}

//获取融云用户信息
+ (NSURLSessionTask *)requestRcUserDetailSuccess:(ST_DataRequestSuccess)success Failure:(ST_RequestFailure)failure {
    return [ST_BaseNetManager requestMethod:HttpMethodPost urlString:URL_RongCloud_Token params:@{} from:NO success:success failure:failure];
}


//云储存令牌
+ (NSURLSessionTask *)requestOssTokenSuccess:(ST_DataRequestSuccess)success Failure:(ST_RequestFailure)failure {
    return [ST_BaseNetManager requestMethod:HttpMethodGet urlString:URL_Oss_Token params:@{} from:NO success:success failure:failure];
}

//特殊规则配置信息
+ (NSURLSessionTask *)requestConfigRuleInfoWithKey:(NSString *)key success:(ST_DataRequestSuccess)success Failure:(ST_RequestFailure)failure {
    NSString *urlString = [NSString stringWithFormat:@"%@?key=%@",URL_Config_Rule_Info,key];
    return [ST_BaseNetManager requestMethod:HttpMethodGet urlString:urlString params:@{} from:YES success:success failure:failure];
}


#pragma mark 粉丝
//邀请配置
+ (NSURLSessionTask *)requestUserInviteConfigSuccess:(ST_DataRequestSuccess)success Failure:(ST_RequestFailure)failure {
    return [ST_BaseNetManager requestMethod:HttpMethodGet urlString:URL_User_Invite_Config params:@{} from:NO success:success failure:failure];
}


//团队信息【等级信息】
+ (NSURLSessionTask *)requestPartnerInfoSuccess:(ST_DataRequestSuccess)success Failure:(ST_RequestFailure)failure {
    return [ST_BaseNetManager requestMethod:HttpMethodGet urlString:URL_Partner_Info params:@{} from:NO success:success failure:failure];
}


//直推粉丝数据【粉丝列表】
+ (NSURLSessionTask *)requestPartnerFansListWithPageNum:(NSInteger)pageNum success:(ST_DataRequestSuccess)success Failure:(ST_RequestFailure)failure {
    NSString *urlString = [NSString stringWithFormat:@"%@?pageSize=10&pageNum=%ld",URL_Partner_Fans_List,pageNum];
    return [ST_BaseNetManager requestMethod:HttpMethodGet urlString:urlString params:@{} from:YES success:success failure:failure];
}


// 星级达人
+ (NSURLSessionTask *)requestPartnerBonusInfoSuccess:(ST_DataRequestSuccess)success Failure:(ST_RequestFailure)failure {
    return [ST_BaseNetManager requestMethod:HttpMethodGet urlString:URL_Partner_Bonus_Info params:@{} from:NO success:success failure:failure];
}

// 星级达人激活
+ (NSURLSessionTask *)requestPartnerBonusActivateWithLevel:(NSString *)level pay_password:(NSString *)pay_password success:(ST_DataRequestSuccess)success Failure:(ST_RequestFailure)failure {
    NSDictionary *dict = @{@"level":level,
                           @"pay_password":pay_password
    };
    return [ST_BaseNetManager requestMethod:HttpMethodPost urlString:URL_Partner_Bonus_Activate params:dict from:NO success:success failure:failure];
}


#pragma mark 代理
//代理信息
+ (NSURLSessionTask *)requestAgentDataSuccess:(ST_DataRequestSuccess)success Failure:(ST_RequestFailure)failure {
    return [ST_BaseNetManager requestMethod:HttpMethodGet urlString:URL_Agent_Data params:@{} from:NO success:success failure:failure];
}


//代理申请 
+ (NSURLSessionTask *)requestAgentApplyWithAddessCode:(NSString *)region_code
                                                 name:(NSString *)name
                                     identity_card_no:(NSString *)identity_card_no
                                        contact_phone:(NSString *)contact_phone
                                         pay_password:(NSString *)pay_password
                                              success:(ST_DataRequestSuccess)success
                                              Failure:(ST_RequestFailure)failure {
    NSDictionary *dict = @{@"region_code":region_code,
                           @"name":name,
                           @"identity_card_no":identity_card_no,
                           @"contact_phone":contact_phone,
                           @"pay_password":pay_password
    };
    return [ST_BaseNetManager requestMethod:HttpMethodPost urlString:URL_Agent_Apply params:dict from:NO success:success failure:failure];
}

//代理配置
+ (NSURLSessionTask *)requestAgentConfigSuccess:(ST_DataRequestSuccess)success Failure:(ST_RequestFailure)failure {
    return [ST_BaseNetManager requestMethod:HttpMethodGet urlString:URL_Agent_Config params:@{} from:NO success:success failure:failure];
}

//个人中心广告点击查询
+ (NSURLSessionTask *)requestMineAdvertProgressWithParams:(NSDictionary *)params success:(ST_DataRequestSuccess)success Failure:(ST_RequestFailure)failure {
    return [ST_BaseNetManager requestMethod:params.allKeys.count > 0 ? HttpMethodPost : HttpMethodGet  urlString:URL_Mine_Advert_Progress params:params from:NO success:success failure:failure];
}


//意见反馈配置
+ (NSURLSessionTask *)requestUserAdviseConfigSuccess:(ST_DataRequestSuccess)success Failure:(ST_RequestFailure)failure {
    return [ST_BaseNetManager requestMethod:HttpMethodGet urlString:URL_User_Advise_Config params:@{} from:NO success:success failure:failure];
}


//意见反馈
+ (NSURLSessionTask *)requestUserAdviseAddWithParams:(NSDictionary *)params success:(ST_DataRequestSuccess)success Failure:(ST_RequestFailure)failure {
    return [ST_BaseNetManager requestMethod:HttpMethodPost urlString:URL_User_Advise_Add params:params from:NO success:success failure:failure];
}


//城市合伙人数据
+ (NSURLSessionTask *)requestUserShareholderDataSuccess:(ST_DataRequestSuccess)success Failure:(ST_RequestFailure)failure {
    return [ST_BaseNetManager requestMethod:HttpMethodGet urlString:URL_User_Shareholder_Data params:@{} from:YES success:success failure:failure];
}


//归属地
+ (NSURLSessionTask *)requestUpdateLocalWithLatitude:(double)latitude
                                           longitude:(double)longitude
                                         region_code:(NSString *)region_code
                                             success:(ST_DataRequestSuccess)success
                                             Failure:(ST_RequestFailure)failure {
    NSDictionary *dict = @{@"latitude":@(latitude),
                           @"longitude":@(longitude)
    };
    if ([region_code isNotBlank]) {
        dict = @{@"region_code":region_code};
    }
    return [ST_BaseNetManager requestMethod:HttpMethodPost urlString:URL_Update_Local params:dict from:NO success:success failure:failure];
}


#pragma mark 账单
//账单统计
+ (NSURLSessionTask *)requestBillStatisticsWithType:(NSString *)type success:(ST_DataRequestSuccess)success Failure:(ST_RequestFailure)failure {
    NSString *urlString = [NSString stringWithFormat:@"%@/%@",URL_Bill_Statistics,type];
    return [ST_BaseNetManager requestMethod:HttpMethodGet  urlString:urlString params:@{} from:NO success:success failure:failure];
}


//账单分页查询
+ (NSURLSessionTask *)requestBillListWithParams:(NSDictionary *)params success:(ST_DataRequestSuccess)success Failure:(ST_RequestFailure)failure {
    return [ST_BaseNetManager requestMethod:HttpMethodGet  urlString:URL_Bill_List params:params from:YES success:success failure:failure];
}


//分润统计
+ (NSURLSessionTask *)requestProfitRecordStatisticsWithType:(NSString *)type account_type:(NSString *)account_type success:(ST_DataRequestSuccess)success Failure:(ST_RequestFailure)failure {
    NSDictionary *dict = @{@"account_type":account_type,
                           @"status":type
    };
    return [ST_BaseNetManager requestMethod:HttpMethodGet  urlString:URL_Profit_Record_Statistics params:dict from:NO success:success failure:failure];
}

// 分润列表记录
+ (NSURLSessionTask *)requestProfitRecordWithParams:(NSDictionary *)params success:(ST_DataRequestSuccess)success Failure:(ST_RequestFailure)failure {
    return [ST_BaseNetManager requestMethod:HttpMethodGet  urlString:URL_Profit_Record params:params from:YES success:success failure:failure];
}


#pragma mark 实名认证
//实名认证【页面】
+ (NSURLSessionTask *)requestUserCertifyHomeSuccess:(ST_DataRequestSuccess)success Failure:(ST_RequestFailure)failure {
    return [ST_BaseNetManager requestMethod:HttpMethodGet urlString:URL_User_Certify_Home params:@{} from:YES success:success failure:failure];
}


//实名认证【收银台】
+ (NSURLSessionTask *)requestUserCertifyPaymentInfoSuccess:(ST_DataRequestSuccess)success Failure:(ST_RequestFailure)failure {
    return [ST_BaseNetManager requestMethod:HttpMethodGet urlString:URL_User_Certify_Payment_Info params:@{} from:NO success:success failure:failure];
}


//实名认证【人脸识别】
+ (NSURLSessionTask *)requestUserCertifyThirdCommitWithName:(NSString *)name cardNo:(NSString *)identity_card_no cerType:(NSString *)certify_type success:(ST_DataRequestSuccess)success Failure:(ST_RequestFailure)failure {
    NSDictionary *dict = @{@"name":name,
                           @"identity_card_no":identity_card_no,
                           @"certify_type":certify_type,
                           @"extra_data":@""
    };
    return [ST_BaseNetManager requestMethod:HttpMethodPost urlString:URL_User_Certify_Third_Commit params:dict from:NO success:success failure:failure];
}


//实名认证【提交】
+ (NSURLSessionTask *)requestUserCertifyCommitWithName:(NSString *)name cardNo:(NSString *)identity_card_no success:(ST_DataRequestSuccess)success Failure:(ST_RequestFailure)failure {
    NSDictionary *dict = @{@"name":name,
                           @"identity_card_no":identity_card_no
    };
    return [ST_BaseNetManager requestMethod:HttpMethodPost urlString:URL_User_Certify_Commit params:dict from:NO success:success failure:failure];
}


//创建支付订单
+ (NSURLSessionTask *)requestRechargeCreateWithPrice:(NSString *)price channel_id:(NSString *)channel_id business_id:(NSString *)business_id business_type:(NSString *)business_type success:(ST_DataRequestSuccess)success Failure:(ST_RequestFailure)failure {
    NSDictionary *dict = @{@"price":price,
                           @"channel_id":channel_id,
                           @"business_id":business_id,
                           @"business_type":business_type
    };
    return [ST_BaseNetManager requestMethod:HttpMethodPost urlString:URL_Recharge_Create params:dict from:NO success:success failure:failure];
}


#pragma mark 商家
//线下商家分类
+ (NSURLSessionTask *)requestShopCategoryListSuccess:(ST_DataRequestSuccess)success Failure:(ST_RequestFailure)failure {
    return [ST_BaseNetManager requestMethod:HttpMethodGet  urlString:URL_Shop_Category_List params:@{} from:NO success:success failure:failure];
}


//商家信息
+ (NSURLSessionTask *)requestShopInfoWithType:(NSString *)type success:(ST_DataRequestSuccess)success Failure:(ST_RequestFailure)failure {
    NSString *urlString = [NSString stringWithFormat:@"%@/%@",URL_Shop_Info,type];
    return [ST_BaseNetManager requestMethod:HttpMethodGet  urlString:urlString params:@{} from:NO success:success failure:failure];
}


//商家申请
+ (NSURLSessionTask *)requestShopCommitWithParams:(NSDictionary *)params success:(ST_DataRequestSuccess)success Failure:(ST_RequestFailure)failure {
    return [ST_BaseNetManager requestMethod:HttpMethodPost urlString:URL_Shop_Commit params:params from:NO success:success failure:failure];
}


//商家申请审核
+ (NSURLSessionTask *)requestShopSubmitAuditWithType:(NSString *)type success:(ST_DataRequestSuccess)success Failure:(ST_RequestFailure)failure {
    NSString *urlString = [NSString stringWithFormat:@"%@/%@",URL_Shop_Submit_Audit,type];
    return [ST_BaseNetManager requestMethod:HttpMethodPost urlString:urlString params:@{} from:NO success:success failure:failure];
}


#pragma mark 消息通知模块
//系统通知列表
+ (NSURLSessionTask *)requestNoticeMessageListSuccess:(ST_DataRequestSuccess)success Failure:(ST_RequestFailure)failure {
    return [ST_BaseNetManager requestMethod:HttpMethodGet urlString:URL_Notice_Message_List params:@{} from:NO success:success failure:failure];
}


//系统通知清除未读
+ (NSURLSessionTask *)requestNoticeMessageClearReadFlagSuccess:(ST_DataRequestSuccess)success Failure:(ST_RequestFailure)failure {
    return [ST_BaseNetManager requestMethod:HttpMethodPost urlString:URL_Notice_Message_ClearReadFlag params:@{} from:NO success:success failure:failure];
}


#pragma mark 汇宝
//汇宝积分增值首页
+ (NSURLSessionTask *)requestCapitalPledgeHomeDataSuccess:(ST_DataRequestSuccess)success Failure:(ST_RequestFailure)failure {
    return [ST_BaseNetManager requestMethod:HttpMethodGet urlString:URL_Capital_Pledge_Home_Data params:@{} from:NO success:success failure:failure];
}


//汇宝积分增值申请
+ (NSURLSessionTask *)requestRechargeCreateWithPrice:(NSString *)price pay_password:(NSString *)pay_password success:(ST_DataRequestSuccess)success Failure:(ST_RequestFailure)failure {
    NSDictionary *dict = @{@"amount":price,
                           @"pay_password":pay_password
    };
    return [ST_BaseNetManager requestMethod:HttpMethodPost urlString:URL_Capital_Pledge_Apply params:dict from:NO success:success failure:failure];
}



//汇宝积分增值记录
+ (NSURLSessionTask *)requestCapitalPledgeRecordListWithPageNum:(NSInteger)pageNum success:(ST_DataRequestSuccess)success Failure:(ST_RequestFailure)failure {
    NSString *urlString = [NSString stringWithFormat:@"%@?pageSize=10&pageNum=%ld",URL_Capital_Pledge_Record_List,pageNum];
    return [ST_BaseNetManager requestMethod:HttpMethodGet urlString:urlString params:@{} from:YES success:success failure:failure];
}

//汇宝信息
+ (NSURLSessionTask *)requestCapitalHuiBaoInfoSuccess:(ST_DataRequestSuccess)success Failure:(ST_RequestFailure)failure {
    return [ST_BaseNetManager requestMethod:HttpMethodGet urlString:URL_Capital_HuiBao_Info params:@{} from:YES success:success failure:failure];
}

//汇宝转账配置
+ (NSURLSessionTask *)requestCapitalHuiBaoTransferConfigSuccess:(ST_DataRequestSuccess)success Failure:(ST_RequestFailure)failure {
    return [ST_BaseNetManager requestMethod:HttpMethodGet urlString:URL_Capital_HuiBao_Transfer_Config params:@{} from:YES success:success failure:failure];
}


//汇宝积分增值申请
+ (NSURLSessionTask *)requestCapitalHuiBaoTransferApplyWithPrice:(NSString *)price target_code:(NSString *)target_code pay_password:(NSString *)pay_password success:(ST_DataRequestSuccess)success Failure:(ST_RequestFailure)failure {
    NSDictionary *dict = @{@"amount":price,
                           @"pay_password":pay_password,
                           @"target_code":target_code
    };
    return [ST_BaseNetManager requestMethod:HttpMethodPost urlString:URL_Capital_HuiBao_Transfer_Apply params:dict from:NO success:success failure:failure];
}

//会员等级
+ (NSURLSessionTask *)requestPartnerPoundageConfigSuccess:(ST_DataRequestSuccess)success Failure:(ST_RequestFailure)failure {
    return [ST_BaseNetManager requestMethod:HttpMethodGet urlString:URL_Partner_Poundage_Config params:@{} from:YES success:success failure:failure];
}

#pragma mark 更新
//更新
+ (NSURLSessionTask *)requestAPPLastVersionSuccess:(ST_DataRequestSuccess)success Failure:(ST_RequestFailure)failure {
    NSDictionary *dict = @{@"type":@"1",
                           @"bundleId":[UIApplication sharedExtensionApplication].appBundleID
    };
    return [ST_BaseNetManager requestMethod:HttpMethodGet urlString:URL_APP_Last_Version params:dict from:YES success:success failure:failure];
}

//下载地址
+ (NSURLSessionTask *)requestAPPProductDownloadUrlSuccess:(ST_DataRequestSuccess)success Failure:(ST_RequestFailure)failure {
    NSDictionary *dict = @{@"type":@"1",
                           @"bundleId":[UIApplication sharedExtensionApplication].appBundleID
    };
    return [ST_BaseNetManager requestMethod:HttpMethodGet urlString:URL_APP_Product_Download_Url params:dict from:YES success:success failure:failure];
}


#pragma mark 签到
// 签到数据
+ (NSURLSessionTask *)requestSignHomeDataSuccess:(ST_DataRequestSuccess)success Failure:(ST_RequestFailure)failure {
    return [ST_BaseNetManager requestMethod:HttpMethodGet urlString:URL_Sign_Home_Data params:@{} from:NO success:success failure:failure];
}

//签到视频任务广告提交
+ (NSURLSessionTask *)requestSignAdvertProgressWithKey:(NSString *)key success:(ST_DataRequestSuccess)success Failure:(ST_RequestFailure)failure {
    NSDictionary * params = @{@"key":key,@"event_id":[NSString getNowTimeTimestamp]};
    return [ST_BaseNetManager requestMethod:HttpMethodPost urlString:URL_Sign_Advert_Progress params:params from:NO success:success failure:failure];
}


// 汇豆商品兑换记录
+ (NSURLSessionTask *)requestSignGoodsExchangeRecordWithPage:(NSInteger)pageNum success:(ST_DataRequestSuccess)success Failure:(ST_RequestFailure)failure {
    NSString *urlString = [NSString stringWithFormat:@"%@?pageNum=%ld&pageSize=10",URL_Sign_Goods_Exchange_Record,pageNum];
    return [ST_BaseNetManager requestMethod:HttpMethodGet urlString:urlString params:@{} from:NO success:success failure:failure];
}

#pragma mark 提现
// 提现配置
+ (NSURLSessionTask *)requestUserWithdrawConfigSuccess:(ST_DataRequestSuccess)success Failure:(ST_RequestFailure)failure {
    return [ST_BaseNetManager requestMethod:HttpMethodGet urlString:URL_User_Withdraw_Config params:@{} from:NO success:success failure:failure];
}

//提现申请
//account_type  账户类型 1:支付宝 2：银行卡
+ (NSURLSessionTask *)requestUserWithdrawApplyWithMoney:(NSString *)money account_type:(NSInteger)account_type pay_password:(NSString *)pay_password success:(ST_DataRequestSuccess)success Failure:(ST_RequestFailure)failure {
    NSDictionary * params =  @{@"money":money,
                               @"pay_password":pay_password,
                               @"account_type":@(account_type)
    };
    return [ST_BaseNetManager requestMethod:HttpMethodPost urlString:URL_User_Withdraw_Apply params:params from:NO success:success failure:failure];
}


// 提现记录
+ (NSURLSessionTask *)requestUserWithdrawRecordWithPage:(NSInteger)pageNum success:(ST_DataRequestSuccess)success Failure:(ST_RequestFailure)failure {
    NSString *urlString = [NSString stringWithFormat:@"%@?pageNum=%ld&pageSize=10",URL_User_Withdraw_Record,pageNum];
    return [ST_BaseNetManager requestMethod:HttpMethodGet urlString:urlString params:@{} from:NO success:success failure:failure];
}

//收款账户更新
//type  账户类型 1:支付宝 2：银行卡
+ (NSURLSessionTask *)requestUserWithdrawAccountUpdateWithAccount:(NSString *)account name:(NSString *)name additional:(NSString *)additional type:(NSInteger)type  success:(ST_DataRequestSuccess)success Failure:(ST_RequestFailure)failure {
    NSDictionary * params =  @{@"account":account,
                               @"name":name,
                               @"additional":additional,
                               @"type":@(type)
    };
    return [ST_BaseNetManager requestMethod:HttpMethodPost urlString:URL_User_Withdraw_Account_Update params:params from:NO success:success failure:failure];
}


#pragma mark 充值
// 充值配置
+ (NSURLSessionTask *)requestCapitalVoucherConfigSuccess:(ST_DataRequestSuccess)success Failure:(ST_RequestFailure)failure {
    return [ST_BaseNetManager requestMethod:HttpMethodGet urlString:URL_Capital_Voucher_Config params:@{} from:NO success:success failure:failure];
}

//充值申请
+ (NSURLSessionTask *)requestCapitalVoucherApplyWithMoney:(NSString *)money voucher_url:(NSString *)voucher_url success:(ST_DataRequestSuccess)success Failure:(ST_RequestFailure)failure {
    NSDictionary * params =  @{@"amount":money,
                               @"voucher_url":voucher_url
    };
    return [ST_BaseNetManager requestMethod:HttpMethodPost urlString:URL_Capital_Voucher_Apply params:params from:NO success:success failure:failure];
}


// 充值记录
+ (NSURLSessionTask *)requestCapitalVoucherRecordWithPage:(NSInteger)pageNum success:(ST_DataRequestSuccess)success Failure:(ST_RequestFailure)failure {
    NSString *urlString = [NSString stringWithFormat:@"%@?pageNum=%ld&pageSize=10",URL_Capital_Voucher_Record,pageNum];
    return [ST_BaseNetManager requestMethod:HttpMethodGet urlString:urlString params:@{} from:NO success:success failure:failure];
}


#pragma mark 商城等级
// 团队信息 【商城级别】
+ (NSURLSessionTask *)requestUserTeamConsumeInfoSuccess:(ST_DataRequestSuccess)success Failure:(ST_RequestFailure)failure {
    return [ST_BaseNetManager requestMethod:HttpMethodGet urlString:URL_User_Team_Consume_Info params:@{} from:NO success:success failure:failure];
}


// 我得好友 【商城级别】
+ (NSURLSessionTask *)requestUserTeamConsumeFansListWithPage:(NSInteger)pageNum success:(ST_DataRequestSuccess)success Failure:(ST_RequestFailure)failure {
    NSString *urlString = [NSString stringWithFormat:@"%@?pageNum=%ld&pageSize=10",URL_User_Team_Consume_Fans_List,pageNum];
    return [ST_BaseNetManager requestMethod:HttpMethodGet urlString:urlString params:@{} from:NO success:success failure:failure];
}

//账户注销
//是否强制注销
+ (NSURLSessionTask *)requestUserCancellationWithForce:(NSInteger)force sms_code:(NSString *)sms_code success:(ST_DataRequestSuccess)success Failure:(ST_RequestFailure)failure {
    NSDictionary * params =  @{@"force":@(force),
                               @"sms_code":sms_code
    };
    return [ST_BaseNetManager requestMethod:HttpMethodPost urlString:URL_User_Cancellation params:params from:NO success:success failure:failure];
}


@end
